@echo off
title MD5UPDATE
set userPath=.\environment

REM package
rem call mvn clean install -Dmaven.test.skip=true

rem delete md5Update
rmdir MD5UPDATE /s /q

rem create md5Update and conf
mkdir MD5UPDATE
mkdir MD5UPDATE\conf

copy /y .\start.bat MD5UPDATE
copy /y .\reset-environment.bat MD5UPDATE
copy /y .\set-environment.bat MD5UPDATE
copy /y .\README.txt MD5UPDATE
xcopy /y .\src\main\resources\conf\*.json MD5UPDATE\conf /s
xcopy /y .\target\*.jar  MD5UPDATE\ /s
xcopy /y .\environment  MD5UPDATE\environment /s /i


%userPath%\7z\7z a MD5UPDATE\MD5UPDATE.zip MD5UPDATE
echo.
echo -------completed!--------
choice /t 2 /d y /n >nul